//
//  RegisterViewController.h
//  OCPB
//
//  Created by Siroj Chongkolwanont on 6/27/56 BE.
//  Copyright (c) 2556 Siroj Chongkolwanont. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UserInfo.h"

@interface RegisterViewController : UIViewController<UIPickerViewDelegate, UIPickerViewDataSource,UITextFieldDelegate,UIAlertViewDelegate,UIActionSheetDelegate>
@property (strong, nonatomic) IBOutlet UITextField *IdText;
@property (strong, nonatomic) IBOutlet UITextField *passText;
@property (strong, nonatomic) IBOutlet UITextField *firstText;
@property (strong, nonatomic) IBOutlet UITextField *lastText;
@property (strong, nonatomic) IBOutlet UITextField *addrText;
@property (strong, nonatomic) IBOutlet UITextField *postText;
@property (strong, nonatomic) IBOutlet UITextField *telText;
@property (strong, nonatomic) IBOutlet UITextField *emailText;
@property (strong, nonatomic) IBOutlet UIPickerView *pickerView1;
@property (strong, nonatomic) IBOutlet UIPickerView *pickerView2;
@property (strong, nonatomic) IBOutlet UIPickerView *pickerView3;
@property (strong, nonatomic) IBOutlet UIButton *registerBtn;
@property UserInfo* userInfo;
@property NSString* mode;
@property NSString* authorizationData;

@property (strong, nonatomic) IBOutlet UITextField *provinceTextbox;
@property (strong, nonatomic) IBOutlet UIButton *provinceButton;

@property (strong, nonatomic) IBOutlet UITextField *aumphurText;
@property (strong, nonatomic) IBOutlet UIButton *aumphurButton;

@property (strong, nonatomic) IBOutlet UITextField *tumbolText;
@property (strong, nonatomic) IBOutlet UIButton *tumbolButton;

@property (strong, nonatomic) IBOutlet UIScrollView *scrollView;
@property (strong, nonatomic) IBOutlet UITextField *confirmPasswordText;
- (IBAction)selectList:(id)sender;

//component from UserInfoViewController
@property UITextField *userInfo_nameText;
@property UITextField *userInfo_telText;
@property UITextField *userInfo_emailText;
@property UITextView *userInfo_address;
- (IBAction)RegisterClick:(id)sender;

@end
